<%@ page language="java"  contentType="text/html; charset=UTF-8" %>
<%
String path = request.getContextPath();
//String basePath = request.getScheme() + "://" + request.getServerName() + ":" + request.getServerPort();
%>
<html>
<body>
<h2>Hello World!</h2>
<h1>电商项目，部分功能测试地址</h1>



springmvc上传文件
<form name="form1" action="/manage/product/upload.do" method="post" enctype="multipart/form-data">
    <input type="file" name="upload_file" />
    <input type="submit" value="springmvc上传文件" />
</form>


富文本图片上传文件
<form name="form2" action="/manage/product/richtext_img_upload.do" method="post" enctype="multipart/form-data">
    <input type="file" name="upload_file" />
    <input type="submit" value="富文本图片上传文件" />
</form>

<form name="form3" action="/user/login.do" method="post" >
    <input type="text" name="username" />
    <input type="password" name ="password" />
    <input type="submit" value="登录">
</form>

<h1>ajax异步请求模块</h1>

<h5>请求区</h5>
<h5>请求区url：</h5><input type="text" value = "123" class = "req"/>
<h5>响应区</h5><textarea name="textarea" col="50" rows="10"  calss="resp"/>
<script src="http://ajax.aspnetcdn.com/ajax/jquery/jquery.min.js"></script>
<script type="text/javascript">
    function  sub(){
        $.ajax({
            type:"GET",
            url:" 还没确定 ",
            data:{username:$("#name").val()},
            statusCode: {404: function() {
                alert('page not found'); }
            },
            success:function(data,textStatus){
                $("#sp").html(data);
            }
        });
    }
</script>
</body>
</html>
